package com.sxl.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sxl.domain.Report;
import com.sxl.domain.Students;
import com.sxl.domain.Students_export;
import com.sxl.service.StudentsService;
import com.sxl.mapper.StudentsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author xue
* @description 针对表【students】的数据库操作Service实现
* @createDate 2022-04-30 21:01:27
*/
@Service
public class StudentsServiceImpl extends ServiceImpl<StudentsMapper, Students>
    implements StudentsService{
    @Autowired
    private StudentsMapper studentsMapper;
    @Override
    public List<Students> selectAllByNetpusherIdAndIsValid(Students students) {
        return studentsMapper.selectAllByNetpusherIdAndIsValid(students);
    }

    @Override
    public int getCount(Students students) {
        return studentsMapper.getCount(students);
    }

    @Override
    public List<Students_export> exportStudents(Students students) {
        return studentsMapper.exportStudents(students);
    }

    @Override
    public List<Students> selectAllByIsValidAndAskerId(Students students) {
        return studentsMapper.selectAllByIsValidAndAskerId(students);
    }

    @Override
    public int countStudent(Students students) {
        return studentsMapper.countStudent(students);
    }

    @Override
    public List<Students_export> exportMyStudents(Students students) {
        return studentsMapper.exportMyStudents(students);
    }

    @Override
    public List<Report> askerStudentReport() {
        return studentsMapper.askerStudentReport();
    }

    @Override
    public List<Report> netStudentReport() {
        return studentsMapper.netStudentReport();
    }
}




